<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	    <c:set var="contextPath" value="${pageContext.request.contextPath}" scope="application"/>
	    <meta name="viewport" content="width=device-width,user-scalable=no"/>
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	    <title><decorator:title default=""/></title>
	    <link href="${contextPath}/resources/bootstrap.min.css" rel="stylesheet"/>
	    <link rel="stylesheet" href="${contextPath}/resources/basicInfoCSS/appinfo.css"/>
	    <link rel="stylesheet" href="${contextPath}/resources/basicInfoCSS/public-homepage.css">
	    <script type="text/javascript" src="${contextPath}/resources/jquery.min.js"></script>
	    <script type="text/javascript" src="${contextPath}/resources/basicInfoJS/gaea_1_22.js"></script>
		<script type="text/javascript" src="${contextPath}/resources/basicInfoJS/editAppBasic.js"></script>
	    <decorator:head/>
	</head>
	<body class="B_op_addnew" style="overflow: scroll;">
		<sec:authentication property="principal" var="authentication"/>
		<div >
			<div id="pl_web_top" class="global_top_header">
				<div class="global_top_header ">
					<div class="header_inner">
						<div class="header_wrapper">
							<div class="nav_list_container">
								<ul class="nav_list">
									<li class="nav_item ">
										<a title="" href="${contextPath}/common/webApply" class="nav_link">网站接入
									</a>
									<%-- <li class="nav_item nav_item_more nav_more_mouseover2   nav_length_3">
										<a title="" href="#" action-data="index=1" action-type="selection_btn" class="nav_link">微连接<i class="mark_more_arrow"></i> </a>
										<div action-data="index=1" action-type="selection_menu" class="nav_more_layer" style="visibility: visible; display: none; overflow: hidden; height: 60px;">
											<div class="nav_more_link_container">
												<div class="more_link_line">
													<a title="" href="${contextPath}/moblie_Apply.jsp" class="nav_more_link">移动应用</a>
												</div>
												<div class="more_link_line">
													<a title="" href="${contextPath}/web_Apply.jsp" class="nav_more_link">网站接入</a>
												</div>
											</div>
										</div>
									</li> --%>
									<li class="nav_item "><a title="" href="#" class="nav_link">文档</a>
									</li>
									<li class="nav_item "><a title="" hidefocus="true"
										href="${contextPath}/portal/cooperator/MyApp" class="nav_link">我的应用</a>
									</li>
								</ul>
							</div>
							<div class="pull_right">
								<c:choose>
									<c:when test="${authentication == 'anonymousUser'}">
										<div id= "head2" class="login_link_container " > 
											<a title="" href="${contextPath}/portalLogin.jsp" node-type="login_btn" class="login_link">登录</a>
											<a title="" href="${contextPath}/common/register" node-type="login_btn" class="login_link">注册</a>
										</div>
									</c:when>
									<c:otherwise>
										<input value="${authentication.user.id}" id="cooperId" type="hidden">
										<div  id= "head1" class="nav_item nav_item_more nav_more_mouseover2 nav_length_3 " >
											<a title="" href="#" action-data="index=1" action-type="selection_btn" class="nav_link" id="userName">
												${authentication.username}
												<i class="mark_more_arrow">
												</i> 
											</a>
											<div action-data="index=1" action-type="selection_menu" class="nav_more_layer" style="visibility: visible; display: none; overflow: hidden; height: 60px;">
												<div class="nav_more_link_container">
													<div class="more_link_line">
														<a title="" href="${contextPath}/portal/cooperator/MyDetails" class="nav_more_link">合作者基本信息</a>
													</div>
													<div class="more_link_line">
														<a title="" href="${contextPath}/portal/logout.do" class="nav_more_link">退出</a>
													</div>
												</div>
											</div>
										</div>
									</c:otherwise>
								</c:choose>
							</div>
						</div>
					</div>
				</div>
			</div>
	        <decorator:body/>
		    <!-- <div id ="bottomTitle">
		        <hr/>
		        <p class="text-center text-muted"> &copy; 2013 - 2015
		            <a href="javascript:void(0);">163@163.com</a> from 
		            <a  href="javascript:void(0);" target="_blank">spring-oauth-server</a>
		        </p>
		    </div> -->
		</div>
	</body>
	
</html>